package com.yaodian100.ec.member.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_MEMBER_RECEIVER_WHITE_BOOK")
public class ReceiverWhiteBook extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -483733076957764227L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_receiver_white")
	@SequenceGenerator(name = "seq_ec_member_receiver_white", sequenceName = "SEQ_EC_MEMBER_RECEIVER_WHITE")
	@Column(name = "ID")
	private int id;
	@Column(name = "BLOCK_TYPE", nullable = false, length = 3)
	private String blockType;

	@Column(name = "BLOCK_CONTENT", length = 300)
	private String blockContent;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BLOCK_STARTDATE")
	private Date blockStartdate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BLOCK_ENDDATE")
	private Date blockEnddate;

	@Column(name = "BLOCK_STATUS", nullable = false, length = 1)
	private String blockStatus;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBlockType() {
		return blockType;
	}

	public void setBlockType(String blockType) {
		this.blockType = blockType;
	}

	public String getBlockContent() {
		return blockContent;
	}

	public void setBlockContent(String blockContent) {
		this.blockContent = blockContent;
	}

	public Date getBlockStartdate() {
		return blockStartdate;
	}

	public void setBlockStartdate(Date blockStartdate) {
		this.blockStartdate = blockStartdate;
	}

	public Date getBlockEnddate() {
		return blockEnddate;
	}

	public void setBlockEnddate(Date blockEnddate) {
		this.blockEnddate = blockEnddate;
	}

	public String getBlockStatus() {
		return blockStatus;
	}

	public void setBlockStatus(String blockStatus) {
		this.blockStatus = blockStatus;
	}
}
